package com.itheima.Test;

public class Test003 {
    //完成工厂设计模式代码
    public static void main(String[] args) {
        Car BMW = Factory.getCar("宝马");
        Car bc = Factory.getCar("奔驰");
        Car wl = Factory.getCar("五菱");
        System.out.println(BMW);
        System.out.println(bc);
        System.out.println(wl);
    }

}
